package com.xsq.audio;

import android.support.v4.media.MediaMetadataCompat;
import android.support.v4.media.session.PlaybackStateCompat;

import java.util.List;

/**
 * Created by Shiquan.Xiao on 2023/3/30.
 */
public abstract class IAudioControllerListener implements  IAudioPlayingListener, IAudioSubscriptionCallback{


    public void onConnected(){
    }


    public void onFailure(){
    }

    @Override
    public void onPlayingState(PlaybackStateCompat state){
    }

    @Override
    public void onPlayingData(MediaMetadataCompat data){
    }

    public void onAudioPosition(long pos, long duration){
    }

    /**
     * 播放模式改变
     */
    public void onRepeatModeChanged(int repeatMode) {
    }

    public void onShuffleModeChanged(int shuffleMode) {
    }

    /**
     * 切换歌曲回调
     */
    public void onPlayChange(MediaMetadataCompat metadata, List<AudioItemData> audioItemList) {
    }

    /**
     * 订阅回调，用于订阅指定专辑调动的音频列表，在ui界面展示列表
     * @param list 专辑列表
     */
    public void onSubscription(List<AudioItemData> list) {
    }
}
